package com.ck.file.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * @author ck
 * @date 2023/8/24 14:58
 */
public interface FileService {

    /**
     * 文件上传接口
     * @param file
     * @return
     */
    String uploadFile(MultipartFile file, HttpServletRequest request) throws Exception;

    /**
     * 文件解压接口
     */
    String extractTarGz() throws IOException;
}
